<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMemoryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('memory', function (Blueprint $table) {
            $table->increments('id');
            $table->string('size') -> comment('大小');
            $table->double('addprice', 8, 2) ->default(0.00) -> comment('额外加钱');
            $table->timestamps();
            });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('memory');
    }
}
